package com.lin.mr.maizilaundry.fragmentorder;


import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ListView;

import com.lin.mr.maizilaundry.R;
import com.lin.mr.maizilaundry.myadapter.UnpayAdaper;
import com.lin.mr.maizilaundry.myapplication.MyApplication;

/**
 *
 */
public class FragmentUnpay extends Fragment {
    private ListView order_list;

    @Override
    public View onCreateView(LayoutInflater inflater, ViewGroup container,
                             Bundle savedInstanceState) {
        View view = inflater.inflate(R.layout.fragment_unpay, container, false);
        /**
         * android:divider="@null"去掉下划线
         */
        order_list = (ListView) view.findViewById(R.id.order_list);
        if (MyApplication.laundries.size() != 0){
            order_list.setAdapter(new UnpayAdaper(getActivity(),MyApplication.laundries));
        }
        return view;
    }
}
